//
//  NSStringAddition.m
//  LJClientKit
//
//  Created by Anton Chebotaev on 23/9/09.
//  Copyright 2009 AntonChebotaev. All rights reserved.
//

#import "NSStringAddition.h"


@implementation NSString (LJBase64)

+ (NSString *)utfStringFromObject:(id)anObject {

	if ([anObject isKindOfClass:[NSString class]]) {
		return anObject;
	} else if ([anObject isKindOfClass:[NSData class]]) {
		return [[[NSString alloc] initWithData:anObject encoding:NSUTF8StringEncoding] autorelease];
	}
	return nil;
}

@end
